@grey: #c5c5c5;

.wea-split-line {
  position: relative;
  height: 32px;
  .wea-sl-item {
    position: absolute;
    display: inline-block;
  }
  .wea-sl-line {
    height: 18px;
    width: 96%;
    margin: 0 2%;
    border-bottom: 1px dotted @grey;
    overflow: hidden;
  }
  .wea-sl-wrap {
    width: 100%;
    height: 32px;
    line-height: 32px;
    text-align: center;
    .wea-sl-text {
      display: inline-block;
      font-size: 12px;
      padding: 0 16px;
      background-color: white;
    }
  }
}

.emailContacts {
  height: 100%;
}

.emailContactsTop {
  background: #fafafa;
  box-shadow: 0 1px 0 0 #e4e4e4;
  .top-left-select {
    display: inline-block;
    float: left;
    margin: 7px 0 0 13px;
    .wea-ftsps-icon{
      cursor: pointer;
      margin: 0 0 0 10px;
    }
    .ant-select {
      width: 102px;
      height: 30px;
      .ant-select-selection--single {
        height: 30px;
      }
    }
    .top-left-select-content{
      .ant-select-selection-selected-value{
        white-space: nowrap;
        text-overflow: ellipsis;
        -o-text-overflow: ellipsis;
        overflow: hidden;
      }
    }
  }
  .top-right-input {
    display: inline-block;
    float: right;
    margin: 7px 0 0 0;
    .ant-btn {
      height: 30px;
      margin-right: 13px;
    }
    .ant-input {
      width: 172px;
      height: 30px;
      margin-right: 8px;
      background: #FFFFFF;
      border: 1px solid #DADADA;
      border-radius: 2px;
    }
  }
}

.emailContactsContain {
  height: 100%;
  padding-bottom: 133px;
  .contactList {
    position: relative;
    display: inline-block;
    width: 186px;
    height: 158px;
    border: 1px solid #e2e2e2;
    background-color: #fff;
    margin: 8px;
    border-radius: 8px;
    vertical-align: bottom;
    &:hover {
      box-shadow: 0px 0px 5px 0px #32a8ff;
    }
    .wea-contactList-top {
      position: absolute;
      width: 100%;
      .wea-contactList-icon {
        float: left;
        margin: 8px;
        font-size: 16px;
      }
      .wea-contactList-check {
        margin: 8px 16px;
        float: right;
      }
    }
    .wea-contactList-middle {
      margin: 30px 0 0 0;
      min-height: 95px;
      cursor: pointer;
      &:first-child {
        font-weight: bolder;
      }
      li {
        white-space: nowrap;
        text-overflow: ellipsis;
        -o-text-overflow: ellipsis;
        overflow: hidden;
        padding: 5px 16px;
      }
    }
    .wea-contactList-bottom {
      font-size: 12px;
      color: #4D7AD8;
      position: relative;
      line-height: 26px;
      height: 26px;
      text-align: center;
      margin: 0 36px;
      cursor: pointer;
      border: 1px solid transparent;
      span:first-child {
        white-space: nowrap;
        text-overflow: ellipsis;
        -o-text-overflow: ellipsis;
        overflow: hidden;
        max-width: 80px;
        display: inline-block;
      }
      &:hover {
        border: 1px solid #e4e4e4;
        border-radius: 5px;
      }
      .icon-coms-organization-down {
        position: absolute;
        color: #a3a3a3;
        padding-top: 5px;
        font-size: 18px;
        transform: scale(0.5);
        -ms-transform: scale(0.5); /* IE 9 */
        -moz-transform: scale(0.5); /* Firefox */
        -webkit-transform: scale(0.5); /* Safari 和 Chrome */
        -o-transform: scale(0.5);
      }
    }
  }
}

.emailContactsBtn {
  // position: absolute;
  background: #fff;
  text-align: right;
  margin-top: -96px;
  width: 100%;
  padding: 10px 8px 10px 0;
  border-top: 1px solid #e4e4e4;
}

@prePopoverCls: wea-email-popover;

.@{prePopoverCls} {
  &-group {
    .ant-popover-title,
    .ant-popover-inner-content {
      height: inherit;
      padding: 0;
      & > div {
        width: 100%;
      }
    }
    .ant-popover-arrow {
      display: none;
    }
    .ant-popover-title {
      width: 400px;
    }
    &-content {
      text-align: center;
      padding: 9px 0 11px 0;
    }
    &-title {
      padding: 17px 15px 5px 17px;
      .topTip {
        // font-size: 14px;
        color: #333333;
      }
      .ant-checkbox-group-item {
        width: 50%;
        span:last-child {
          white-space: nowrap;
          text-overflow: ellipsis;
          -o-text-overflow: ellipsis;
          overflow: hidden;
        }
      }
      .addContacts-addGroup1 {
        position: relative;
        margin-top: 8px;
        .wea-input-normal {
          width: 133px !important;
          .ant-input {
            border: 1px solid #dadada;
            border-radius: 4px;
            height: 30px;
            // width: 225px !important;
            width: 158% !important;
          }
        }
        .addContacts-addGroup1-btn, .addContacts-addGroup1-btn1 {
          color: #fff;
          height: 30px;
          margin-left: 100px;
          margin-top: -7px;
        }
        .addContacts-addGroup1-btn1 {
          background: #dadada;
          margin-left: 10px;
        }
      }
      .addContacts-addGroup2 {
        // display: inline-block;
        // margin-top: 8px;
        // cursor: pointer;
        // line-height: 30px;
        // height: 30px;
        // width: 102px;
        // border: 1px solid #dadada;
        // border-radius: 4px;
        // position: relative;
        // text-align: right;
        // padding-right: 14px;
        display: inline-block;
        border: 1px solid #dadada;
        border-radius: 4px;
        padding: 0 10px;
        .icon-email-New-group {
          // font-size: 18px;
          // color: #444;
          // position: absolute;
          // margin: 5px 0 0 -16px;
          display: inline-block;
          font-size: 18px;
          color: #444;
          margin-right: 6px;
          position: relative;
          top: 2px;
        }
      }
      .single-checkbox {
        display: inline-block;
        width: 50%;
        padding-bottom: 8px;
        .single-checkbox-content {
          display: inline-block;
          padding-left: 5px;
          width: 85%;
          vertical-align: middle;
          white-space: nowrap;
          text-overflow: ellipsis;
          -o-text-overflow: ellipsis;
          overflow: hidden;
        }
      }
    }
  }
  &-btn {
    .ant-popover-title,
    .ant-popover-inner-content {
      height: inherit;
      padding: 0;
      & > div {
        width: 100%;
      }
    }
    .ant-popover-arrow {
      display: none;
    }
    .ant-popover-title {
      width: 140px;
    }
    .popover-move-copy {
      display: block !important;
    }
    .single-btn {
      cursor: pointer;
      position: relative;
      &:hover {
        .icon, .content {
          background: #30b7f4;
          color: #fff;
        }
      }
      .icon, .content {
        display: inline-block;
        background: #f1f5f7;
        width: 33%;
        line-height: 40px;
      }
      .icon {
        position: absolute;
        height: 40px;
      }
      .content {
        background: #fff;
        width: 67%;
        margin-left: 33%;
        padding-left: 5px;
      }
    }
    .single-btn-disable {
      color:#999;
      cursor: not-allowed;
      &:hover {
        .icon, .content {
          background: #dadada!important;
        }
      }
    }
    .single-btn-top-line{
      border-top:1px solid #e4e4e4;
    }
  }
  &-moveorcopy {
    .ant-popover-title,
    .ant-popover-inner-content {
      height: inherit;
      padding: 0;
      & > div {
        width: 100%;
      }
    }
    .ant-popover-arrow {
      display: none;
    }
    .ant-popover-title {
      width: 225px;
    }
    &-title {
      ul {
        min-height: 140px;
        max-height: 400px;
        overflow: auto;
        li {
          cursor: pointer;
          padding: 3px 10px;
          position: relative;
          &:hover {
            background: #eaf8fe;
            color: #1691ec;
          }
          .title-name {
            white-space: nowrap;
            text-overflow: ellipsis;
            -o-text-overflow: ellipsis;
            overflow: hidden;
            max-width: 190px;
            display: inline-block;
          }
          .title-count {
            position: absolute;
          }
        }
      }
    }
    &-content {
      background: #f4f4f4;
      line-height: 42px;
      height: 42px;
      color: #333;
      text-align: center;
      cursor: pointer;
      .icon-email-New-group {
        color: #444;
        font-size: 18px;
        position: absolute;
        margin: 11px 0 0 -24px;
      }
    }
  }
}

.contacts-addGroups {
  .wea-search-group .wea-title {
    border: 0;
  }
  .wea-search-group .wea-content {
    padding-top: 45px;
  }
  .addGroups-btn, .addGroups-btn1 {
    position: relative;
    border-radius: 3px;
  }
  .addGroups-btn1 {
    height: 30px;
    width: 66px;
    text-align: left;
    background: #fff;
    color: #333;
    vertical-align: middle;
    display: inline-block;
    border: 1px solid #dadada;
    line-height: 30px;
    margin-left: 16px;
    cursor: pointer;
    span:first-child {
      padding-left: 17px;
    }
    &:hover {
      border: 1px solid #108ee8;
      color: #108ee8;
    }
    .icon-coms-down {
      position: absolute;
      font-size: 19px;
      margin-top: 6px;
      transform: rotate(-90deg) scale(0.5);
      -ms-transform: rotate(-90deg) scale(0.5); /* IE 9 */
      -moz-transform: rotate(-90deg) scale(0.5); /* Firefox */
      -webkit-transform: rotate(-90deg) scale(0.5); /* Safari 和 Chrome */
      -o-transform: rotate(-90deg) scale(0.5); /* Opera */
      color: #b2b2b2;
    }
  }
}

.emailDialog-addOrEditGroup{
  .wea-search-group {
    height:100%;
    .wea-content{
      height:100%;
      margin-top: 42px;
    }
  }
}